package com.ming_za.odupdaterserver.core.mco_core.Cmd;

import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 用于写入指令注册参数,
 * {@link #cmd()} ()}为该指令标识，用于识别指令
 * {@link #explain()}为指令说明，用于自动生成指令帮助
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Component
public @interface CmdCreate {

    //指令标识
    String cmd();

    //指令介绍
    String explain() default "";

    boolean hide() default false;

    //优先级
    int priority() default 0;

}
